package com.jmu.posms.dto;

import lombok.Data;

import java.util.List;
import java.util.Set;

/**
 * 订单信息输出 , 个人订单页面 以及 全部订单页面
 */
@Data
public class OrderOutputDto {
    /**
     * 报刊信息
     */
    private List<OrderDataDto> dataList;
    /**
     * 订单条数
     */
    private Integer total;
    /**
     * 总金额
     */
    private Double amount;
    /**
     * 订购书刊总数
     */
    private Integer allNum;

    public OrderOutputDto(List<OrderDataDto> dataList, Integer total) {
        this.dataList = dataList;
        this.total = total;
    }

    public OrderOutputDto(List<OrderDataDto> dataList, Integer total, Double amount, Integer allNum) {
        this.dataList = dataList;
        this.total = total;
        this.amount = amount;
        this.allNum = allNum;
    }
}
